package com.drg.center.entity.result;

import com.guaike.core.entity.annotation.EnumConvert;
import com.guaike.core.entity.enums.EnableStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: zhangxilin
 * @Date: 2023/10/26
 */

@ApiModel("字典项VO")
@Data
public class SysDictItemVO implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("系统字典类型编号")
    private String dictCode;

    @ApiModelProperty("系统字典项编码")
    private String itemCode;

    @ApiModelProperty("系统字典项名称")
    private String itemName;

    @ApiModelProperty("状态(0:停用,1启用)")
    @EnumConvert(clazz = EnableStatusEnum.class,from = "code",to="desc")
    private Integer status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty(" 排序字段")
    private Integer sortIndex;
}
